﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    public enum NPC 
    {
        rw,
        sf,
        tj
    }
    abstract class NPCdage
    {
        private string mingzi;
        private NPC type;

        public string Mingzi
        {
            get { return this.mingzi; }
            set { this.mingzi = value; }
        }
        public NPC Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public NPCdage(){}
        public NPCdage(string mingzi, NPC type)
        {
            this.mingzi = mingzi;
            this.type = type;
        }
        public abstract void Speak(); 
        
    }
}
